/*
 * 深圳市灵智数科有限公司版权所有.
 */
package com.spring.bean.definition.domain;

import java.io.Serializable;

/**
 * 功能说明
 *
 * @author 程健
 * @version 1.0.0
 * @date 2020/12/6
 */
public class User implements Serializable {

    private String username;

    private String address;

    private Integer age;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public static User createUser() {
        User user = new User();
        user.setAge(18);
        user.setUsername("tony");
        user.setAddress("湖南长沙");
        return user;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", address='" + address + '\'' +
                ", age=" + age +
                '}';
    }
}